package com.sanji.pay.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by cbh on 2017/9/1.
 */
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {
  @Bean
  public RestTemplate newRestTemplate(){
    return new RestTemplate();
  }
}
